import { Button } from 'antd'
import React from 'react'
import { useNavigate } from 'react-router-dom'

function Index() {
    const navigate=useNavigate();
  return (
    <div>
      首页
      <Button onClick={()=>navigate('/order')}>订单</Button>
    </div>
  )
}

export default Index
